package com.study.aop.service;

import com.study.aop.entity.UserEntity;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author flwu
 * @date 2020/3/19 3:10 PM
 * @MOTTO 保持空杯和敬畏
 */
@Service
public class UserService {

    public List<UserEntity> getUserList() {
        UserEntity user1 = new UserEntity();
        user1.setName("wufaliang");
        user1.setUsername("flwu");
        user1.setPassword("1234566");
        user1.setAge(12);
        user1.setSex(1);

        UserEntity user2 = new UserEntity();
        user2.setName("wufaliang2");
        user2.setUsername("flwu2");
        user2.setPassword("12345662");
        user2.setAge(12);
        user2.setSex(1);

        UserEntity user3 = new UserEntity();
        user3.setName("wufaliang3");
        user3.setUsername("flwu3");
        user3.setPassword("12345663");
        user3.setAge(12);
        user3.setSex(1);

        List<UserEntity> userList = new ArrayList<>();
        userList.add(user1);
        userList.add(user2);
        userList.add(user3);

        return userList;
    }

}
